package com.prs.crm.service.purchase.impl;

import java.io.Serializable;
import java.util.List;

import com.prs.crm.dao.purchase.PaymentOrderDao;
import com.prs.crm.domain.purchase.PaymentOrder;
import com.prs.crm.domain.purchase.PurchaseOrder;
import com.prs.crm.service.impl.BaseServiceImpl;
import com.prs.crm.service.purchase.PaymentOrderService;

public class PaymentOrderServiceImpl extends
		BaseServiceImpl<PaymentOrder, PaymentOrderDao> implements
		PaymentOrderService {

	@Override
	public PaymentOrder getPaymentOrder(Serializable id) {
		// TODO Auto-generated method stub
		return this.getDao().getPaymentOrder(id);
	}

	@Override
	public void saveOrUpdate(PaymentOrder paymentOrder) {
		this.getDao().saveOrUpdate(paymentOrder);
	}

	@Override
	public List<PaymentOrder> getPaymentOrdersByOrder(
			PurchaseOrder purchaseOrder) {
		
		return this.getDao().getPaymentOrdersByOrder(purchaseOrder);
	}

}
